
<style type="text/css">
.storelogo img{width:3.2rem;height:3.2rem}
.merchgroup .store-star {padding:0.1rem 0 0.2rem 0;font-size:0.55rem;line-height:1rem}
.merchgroup .store-star img{height:0.66rem}
.star-on,.star-off{position:absolute;top:1rem;left:0;overflow:hidden}
.star-rate {margin-left:3.6rem}
.store-distance{float:right;color:#999}
.store-moneylimit{font-size:0.55rem}
</style>
<div class="fui-page order-create-page fui-page-current" ng-if="pagedata.op == 'list'">
	<div class="fui-content">
		<div id="carousel-container" class="carousel slide" data-role="carousel" data-param-auto="true">
			<div class="carousel-inner" role="listbox" style="height:11rem">
		<div ng-class="{'item':1,'active':$index==0}" ng-repeat="item in pagedata.banner">
			<a href="#">
				<img src="{{tomedia(item.picurl) || '../core/resource/images/banner-1.jpg'}}" style="display: block; width: 100%; height: 100%;">
			</a>
		</div>
		</div>
			<style>
					.fui-swipe-page .fui-swipe-bullet {background: {background}; opacity: {opacity};}
					.fui-swipe-page .fui-swipe-bullet.active {opacity: 1;}
			</style>
			<div id="carousel-jinyun" class="fui-swipe-page" style="padding: 0 5px; bottom: 10px; ">
				<div class="fui-swipe-bullet" ng-repeat="item in pagedata.banner" ng-class="{'active':$index==0}" data-target="#carousel-container" data-slide-to="{{$index}}"></div>
			</div>
		</div>
		<div class="fui-list-group merchgroup" ng-repeat="item in pagedata.list">
            <div class="fui-list">
                <a class="fui-list-media storelogo" href="javascript:;" ng-click="access_json('jy_cmsdecorate/company/detail/id='+item.id)">
                    <img class="round" ng-src="{{tomedia(item.image) || '../core/resource/images/nopic.jpg'}}">
                </a>
                <a class="fui-list-inner" style="margin-top:0.16rem" href="javascript:;" ng-click="access_json('jy_cmsdecorate/company/detail/id='+item.id)">
                    <div class="title" style="font-size:0.76rem">{{item.title}}</div>
                    <div class="store-star">
						<span class="star-on"> <img src="../core/resource/images/star-off.png"></span>
						<span class="star-off" style="width: 88%;"> <img src="../core/resource/images/star-on.png"></span>
						<span class="star-rate">4.5</span>
						<span ng-show="item.num">服务{{item.num}}个客户</span>
					</div>
					<div class="subtitle" style="font-size:0.55rem">
						<div class="store-moneylimit">
						  <span>人均¥{{item.price}}</span>
						</div>
					</div>
                </a>
            </div>
		</div>
		<div ng-show="loading" class='infinite-loading'><span class='fui-preloader'></span><span style="margin-left:1.5rem"> 正在加载...</span></div>
	</div>
</div>
<div class="fui-page order-create-page fui-page-current" ng-if="pagedata.op == 'detail'">
	<div class="fui-content">
		<div id="carousel-container" class="carousel slide" data-role="carousel" data-param-auto="true">
			<div class="carousel-inner" role="listbox" style="height:11rem">
		<div ng-class="{'item':1,'active':$index==0}" ng-repeat="item in pagedata.banner">
			<a href="#">
				<img src="{{tomedia(item.picurl) || '../core/resource/images/banner-1.jpg'}}" style="display: block; width: 100%; height: 100%;">
			</a>
		</div>
		</div>
			<style>
					.fui-swipe-page .fui-swipe-bullet {background: {background}; opacity: {opacity};}
					.fui-swipe-page .fui-swipe-bullet.active {opacity: 1;}
			</style>
			<div id="carousel-jinyun" class="fui-swipe-page" style="padding: 0 5px; bottom: 10px; ">
				<div class="fui-swipe-bullet" ng-repeat="item in pagedata.banner" ng-class="{'active':$index==0}" data-target="#carousel-container" data-slide-to="{{$index}}"></div>
			</div>
		</div>
		<div class="weui_cells weui_cells_form" style="margin-top:0">
			<div class="weui_cell">
				<div class="weui_cell_hd"><label class="weui_label"><i class="icon jinyunicon icon-gerenzhongxin" ></i> 访问人数{{pagedata.company.looknum || 0}}<i class="icon jinyunicon icon-yuding" ></i> 已服务客户{{pagedata.company.num || 0}}</label></div>
			</div>
		</div>
		<div class="weui_cell">
                <div class="weui_cell_hd"><label class="weui_label">公司介绍：</label></div>
                <div class="weui_cell_bd weui_cell_primary">
                    <div class="weui_cell_hd"><label class="weui_label">{{pagedata.company.remark}}</label></div>					
                </div>
        </div>
		<div class="weui_cell">
                <div class="weui_cell_hd"><label class="weui_label">公司地址：</label></div>
                <div class="weui_cell_bd weui_cell_primary">
                    <div class="weui_cell_hd"><label class="weui_label">{{pagedata.company.address}}</label></div>					
                </div>
        </div>
		<div class="weui_cell">
                <div class="weui_cell_hd"><label class="weui_label">公司电话：</label></div>
                <div class="weui_cell_bd weui_cell_primary">
                    <div class="weui_cell_hd"><label class="weui_label">{{pagedata.company.phone}}</label></div>					
                </div>
        </div>
		<div class="weui_cell">
                <div class="weui_cell_hd"><label class="weui_label">公司特点：</label></div>
                <div class="weui_cell_bd weui_cell_primary">
                    <div class="weui_cell_hd"><label class="weui_label">{{pagedata.company.advantage}}</label></div>					
                </div>
        </div>	
		<div class="weui_btn_area">
			 <a class="weui_btn weui_btn_primary" href="javascript:"  ng-click="access_json('/company/case')">装修案例</a>
			 <a class="weui_btn weui_btn_primary" href="javascript:"  ng-click="access_json('/company/notice')">立即申请</a>
		</div>
		
</div>
</div>
<div class="fui-header" ng-show="pagedata.op == 'notice'">
		<div class="fui-header-left" onclick="window.history.go(-1);">
            <a class="back"></a>
        </div>
		<div class="title">提交装修信息</div>
		<div class="fui-header-right"></div>
</div>
<div class="weui_cells weui_cells_form" ng-if="pagedata.op == 'notice'">
		 
			 <div class="weui_cell weui_vcode">
                <div class="weui_cell_hd"><label class="weui_label">姓名</label></div>
                <div class="weui_cell_bd weui_cell_primary">
                    <input class="weui_input" type="text" ng-model="pagedata.info.name1" placeholder="请输入姓名1">
                </div>
            </div>
			<div class="weui_cell weui_vcode">
                <div class="weui_cell_hd"><label class="weui_label">姓名</label></div>
                <div class="weui_cell_bd weui_cell_primary">
                    <input class="weui_input" type="text" ng-model="pagedata.info.name" placeholder="请输入姓名">
                </div>
            </div>
	<div class="weui_cell weui_vcode">
                <div class="weui_cell_hd"><label class="weui_label">联系电话</label></div>
                <div class="weui_cell_bd weui_cell_primary">
                    <input class="weui_input" type="number" ng-model="pagedata.info.mobile" placeholder="请输入您的电话">
                </div>
            </div>				
		<div class="weui_cell">
                <div class="weui_cell_hd"><label for="" class="weui_label">地址</label></div>
                <div class="weui_cell_bd weui_cell_primary">
                    <input class="weui_input" ng-model="pagedata.info.address" type="text" value="" placeholder="">
                </div>
                <div class="weui_cell_ft">
                    <i class="icon jinyunicon icon-ditu"></i>
                </div>
        </div>
			<div class="weui_cell weui_vcode">
                <div class="weui_cell_hd"><label class="weui_label">房产具体信息</label></div>
                <div class="weui_cell_bd weui_cell_primary">
                    <input class="weui_input" type="text" ng-model="pagedata.info.xinxi" placeholder="请输入房产信息">
                </div>
            </div>	
			<div class="weui_cells_title">选择设计师</div>
		 <div class="fui-tab-scroll" style="height: 3.6rem" >
			<div class="xcontainer weui_cells_radio3" style="z-index:0;height: 3.6rem;padding:0.3rem" >
			    <label class="jyui_cell_member" ng-repeat="item in pagedata.stylist">
					<div class="userimg">
						<img class="img-circle"  ng-src="{{tomedia(item.headimg) || '../core/resource/images/nopic.jpg'}}" width="40" height="40">
						<div class="imglogo-check" ng-click="pagedata.info.sid=item.id;">
							<input type="radio" class="weui_check" name="radio2">
							<span class="weui_icon_checked"></span>
						</div>
					</div>
					<div>
						<span style="font-size:0.3rem">{{item.name}}</span>
					</div>
				</label>
			</div>
		</div>					
			<div class="weui_cell weui_vcode">
                <div class="weui_cell_hd"><label class="weui_label">备注</label></div>
                <div class="weui_cell_bd weui_cell_primary">
                    <input class="weui_input" type="text" ng-model="pagedata.info.remark" placeholder="请输入详细信息">
                </div>
            </div>
			<div class="weui_btn_area">
		 <a class="weui_btn weui_btn_primary" href="javascript:" id="showTooltips" ng-click="post(pagedata.info,'submit')">提交</a>
</div>
<script type="text/javascript">

window.scope.location(function(res){
		console.log(res)
		scope.$apply(function(){
			scope.pagedata.info.address = res.address;
		});
});
</script>
</div>
<div class="fui-header" ng-show="pagedata.op == 'case'">
		<div class="fui-header-left" onclick="window.history.go(-1);">
            <a class="back"></a>
        </div>
		<div class="title">装修案例</div>
		<div class="fui-header-right"></div>
</div>
<div class="weui_cells weui_cells_form" ng-if="pagedata.op == 'case'">
<div class="fui-line" style="width:6rem;margin:1.0rem auto 0 auto">
		<div class="text text-danger" style="background-color:#fafafa" ></div>
	</div>
	<div class="fui-goods-group block" style="background: {background};">
           <div id="listitem" ng-repeat="item in pagedata.list">
		   <a class="fui-goods-item" data-nocache="true" style="position: relative;" ng-show="item.status == 1" >
            <div  class="image triangle" ng-click="access_json(item.url)" data-text='{{item.ishot}}' style="background-image: url({{tomedia(item.image)}});">
             </div>
                 <div class="detail" >
                        <div class="name" style="color: {titlecolor};">
                             <span>    {{item.title}}  </span>  <br/> 
                               <span>   设计费： {{item.pay||'0'}}元  </span>  
                         </div>
                 </div>
			</a>
			</div>
	</div>
	</div>
<div ng-include="sys_html('_footer')"></div>
<script>
	require(['bootstrap', 'hammer'], function($, Hammer){
		$('#carousel-container').carousel();
		var mc = new Hammer($('#carousel-container').get(0));
		mc.on("panleft", function(ev) {
			$('#carousel-container').carousel('next');
		});
		mc.on("panright", function(ev) {
			$('#carousel-container').carousel('prev');
		});
	});
</script>
